<?php
/**
 * Created by PhpStorm.
 * User: silvery
 * Date: 2016/10/12
 * Time: 20:20
 */
header('Contest-type:text/html;charset=utf-8');
$link = mysqli_connect('localhost','root','');
if(!$link){
    die('连接数据库失败！'.mysqli_error($link));
}
mysqli_query($link,'set names utf8');
mysqli_query($link,'use `itcast`');
$sql ="select * from `emp_info`";
$result = mysqli_query($link,$sql=(int)$sql,$link);
$emp_info = array();
while($row = mysqli_fetch_assoc($result)){
    $emp_info[] = $row;
}
define('APP','itcast');
require'./list_html.php';